



#ifndef _PROPERTY_H__
#define _PROPERTY_H__


#include <QObject>
#include "Property.hpp"
#include "PropertiesAPI.hpp"

NAMESPACE_BEGIN(NSProperties)

class PROPERTYAPI Properties : public QObject {
	SIGNALDEC(Properties, QObject)
protected:
	void Initialize();
	void Finalize();


public:
	inline NSProperty::Property* getProperty(int id) { return properties.at(id); };
	int addNewProperty();


private:
	int first_id;
	std::map<int, NSProperty::Property*>properties;

};


NAMESPACE_END



#endif //!_PROPERTY_H__

